package com.codechuan.hallo_internal;

import android.app.Application;

import com.codechuan.hallo_internal.common.Constant;
import com.codechuan.hallo_internal.utils.ContextUtil;
import com.example.libbaiduselectlocation.MySelectLocationBDSDKManager;

import java.text.SimpleDateFormat;

import me.jessyan.autosize.AutoSize;
import me.jessyan.autosize.AutoSizeConfig;


public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        ContextUtil.application = this;
        ContextUtil.context = this.getApplicationContext();
        // 以 375dp 为设计宽度进行适配
        AutoSizeConfig.getInstance().setDesignWidthInDp(375);
        AutoSize.initCompatMultiProcess(this);


        // 初始化高德地图
        MySelectLocationBDSDKManager.INSTANCE.init(this);
        Constant.format  = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");


    }
}